# -*- coding: utf-8 -*-
# @File     : services.py
# @Author   : bingjia
# @Time     : 2020/8/7 9:38
# @Desc     : 索引服务

from django.apps import apps


def _search_items(queryset, table, text):
    """
    pass
    """


def search_datas(project, text):
    model = apps.get_model("datas", "SrcData")
    queryset = model.objects.filter(project_id=project.pk)
    table = "datas_SrcData"
    return _search_items(queryset, table, text)


def search_infos(project, text):
    """
    获取项目的信息
    """


def search_equipments(project, text):
    """
    获取项目的设备
    """